package com.chaochis.springboottestdemo.enumList;

import com.baomidou.mybatisplus.annotation.EnumValue;
import lombok.Getter;

@Getter
public enum RequestMethod{
  Get("get", 0),
  Post("post", 1);
  public static final RequestMethod[] VALUES = RequestMethod.values();
  @EnumValue
  private final String value;
  private final Integer id;
  RequestMethod(String value, Integer id) {
    this.value = value;
    this.id = id;
  }
}
